/*  */
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
/* first get rid of the comments */
/* "/*"  ****/
/**/
	int c;
	int skip = 0;
	int inString = 0;
	const char* comment = "now the /* is in the string not need to be skipped. */ ";
	while ( ( c = getchar() ) != EOF) {
		if (skip/* now we are in the comment */) {
			if (c != '*') continue;
			else {
				c = getchar();
				if (c == '/') {
					skip = 0;
				} else ungetc(c, stdin);
				continue;
			}
		} else {
			/**** when we are not in comment */
			if (c == '/' && !inString) {
				c = getchar();
				if (c == '*') {
					skip = 1;
					continue;
				} else {
					putchar('/');
					putchar(c);
				}
			} else if (c == '"') {
				inString = !inString;
				putchar(c);
			}else putchar(c);
		}
	}
}
/*   */
